// 登陆
import { request } from '@/utils/service'
import { baseApiUrl } from '@/api/baseApiUrl'

interface IUserRequestData {
  phone: string
  pwd: string
}

/** 登录，返回 token */
export function accountLogin(data: IUserRequestData) {
  return request({
    url: baseApiUrl.LOGIN,
    method: 'post',
    data: data
  })
}
/** 获取用户详情 */
export function userInfoRequest() {
  return request({
    url: baseApiUrl.USER_INFO,
    method: 'get'
  })
}
